package com.hopu.v1.service.admin.verify;

import com.hopu.v1.pojo.verify.Approval;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *
 */
public interface ApprovalService extends IService<Approval> {

    /**
     * 根据请假记录的id查询审批表状态为1且两条记录的数据
     * @param leaveRecordId
     * @return
     */
    List<Approval> selectLeaveRecordId (Integer leaveRecordId);

    /**
     * 根据请假记录id和审批人id修改审批状态
     * @param approval
     * @return
     */
    void updateApproval(Approval approval);
	
	/**
	 * 添加请假审批记录
	 * @param approvals
	 */
	void insertApprove(List<Approval> approvals);
}
